package com.hsyt.pms;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import com.alibaba.dubbo.spring.boot.context.event.DubboBannerApplicationListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

/**
 * @Description: 权限控制系统Web服务控制中心
 * @ClassName: StartWebApplication
 * @Package: com.hsyt.pms
 * @Author: wangze@hsyuntai.com
 * @Date: 2019年02月01日 13:33
 * @Copyright: 版权归 HSYUNTAI 所有
 */
@EnableDubboConfiguration
@MapperScan(basePackages = {"com.hsyt.pms.security.dao"})
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, ActiveMQAutoConfiguration.class}, scanBasePackages = {"com.hsyt.pms"})
@SpringBootApplication
@ImportResource(locations={"classpath:spring/spring-context.xml"})
public class StartWebApplication {

    public static void main(String[] args) {
        DubboBannerApplicationListener.setBANNER_MODE(Banner.Mode.OFF);
        SpringApplication.run(StartWebApplication.class, args);
    }
}

